package com.woniuxy.dr_mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张哲轩
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties("handler")
public class DrSpecPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @TableField("productId")
    private Integer productId;

    private Integer weight;

    private Integer material;

    private Integer color;

    private Integer type;

    private Integer size;

    private Integer series;

    private Integer stock;

    private BigDecimal price;

    @TableField(exist = false)
    private DrProducts products;

    @TableField(exist = false)
    private String specVal;

    //通过规格值的id查规格 叶官鑫 2021-8-18
    @TableField(exist = false)
    private String weightN;
    @TableField(exist = false)
    private String materialN;
    @TableField(exist = false)
    private String colorN;
    @TableField(exist = false)
    private String typeN;
    @TableField(exist = false)
    private String sizeN;
    @TableField(exist = false)
    private String seriesN;

}
